package Buffer;

import java.util.Random;
import java.util.Scanner;

public class GuessGame {
    public static void main(String[] args) {

    }
    public static void start() {
        Random r = new Random();
        int number = r.nextInt(100)+1;

        boolean is = true;
        while (is) {
            Scanner sc = new Scanner(System.in);
            System.out.println("show you guess");
            String s = sc.nextLine();
            if (s.equals("exist")) {
                System.out.println("game over");
                is = false;
            } else if (s.equals(String.valueOf(number))) {
                System.out.println("right");
                is = false;
            } else {
                System.out.println("continue" +","+ number );
            }
        }
    }

}
